package com.tsd.jxc.goods.dao;

import java.util.List;
import java.util.Map;

import com.tsd.core.vo.PageBean;
import com.tsd.jxc.goods.entity.JxcGoodsExt;
import org.apache.ibatis.annotations.Param;

import com.tsd.jxc.goods.entity.JxcGoodsPrice;
import com.tsd.jxc.goods.entity.JxcGoodsPriceExt;
/**
* 描述：JxcGoodsPriceMapper
*
* @author david
* @date 2024/05/06 16:33:50
*/
public interface JxcGoodsPriceMapper {

	JxcGoodsPrice selectByPrimaryKey(Long id);

    JxcGoodsPriceExt selectBySid(String sid);

	int deleteByPrimaryKey(Long id);

    int insert(JxcGoodsPrice record);

    int insertSelective(JxcGoodsPrice record);

    int insertList(@Param("list") List<JxcGoodsPriceExt> list);

    int updateByPrimaryKey(JxcGoodsPrice record);

    int updateByPrimaryKeySelective(JxcGoodsPrice record);

    int updateList(@Param("list") List<JxcGoodsPriceExt> list);

    List<JxcGoodsPriceExt> selectByEntity(JxcGoodsPrice record);

    List<JxcGoodsPriceExt> selectByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<JxcGoodsPriceExt> selectCount1Page(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<JxcGoodsPriceExt> selectByParams(@Param("params") Map<String, Object> params);

    void deleteNotIn(JxcGoodsExt record);

    List<JxcGoodsPriceExt> selectByGoodsSid(@Param("goods_sid") String goods_sid);

    int genNotExistBaseUnit(@Param("goods_list") List<String> goods_list);
}
